<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="lib.jsp" %>
<!DOCTYPE>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>更改商品信息</title>
	</head>
	<body>

		<!-- 研究获取bid的时候测试用的 没用但暂时不舍得删 -->
		<%String id=request.getParameter("bid");
				int bids = 0 ;
				if(id != null) {
						bids = Integer.parseInt(id.toString());
					}
		 		System.out.println(bids);	
		%>
		
		<!-- 对应GoodsInsertServlet.java -->
		<form action="insertGoods?bid=${boss.bid} method="post">
		<!-- <form action="insertGoods?bid=1" method="post"> -->
			<table>	
				<tr>
					<td>商品名</td>
					<td><input 	type="text"
								name="gname"></td>
				</tr>
				<tr>
					<td>价格</td>
					<td><input 	type="text"
								name="gprice"></td>
				</tr>
				<tr>
					<td>种类</td>
					<td>
						<select name="gtype">
							<option value="101">服饰</option>
							<option value="102">食品</option>
							<option value="103">书籍</option>
							<option value="104">科技</option>
							<option value="105">日用</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>图片</td>
					<td><input 	type="text"
								name="picture"></td>
				</tr>
				
				<tr>
					<td>描述</td>
					<td><textarea 
								name="gdetail"></textarea></td>
				</tr>
				
				<tr>
					<td>库存</td>
					<td><input 	type="text"
								name="gstore"></td>
				</tr>
				
				
				
				
				
			</table>
			<br>
			<input type="submit" value="提交">
		</form>
	</body>

</html>